# include <iostream>
#include <map>
using namespace std;
void printMap(map<int,int>&m){
    for (map<int,int>::iterator it=m.begin();it!=m.end();it++){
        cout<<"key="<<it->first<<"value="<<it->second<<endl;
    }
    cout<<endl;
}
void test01(){
    map<int,int>m;
    m.insert(pair<int,int>(1,10));
    m.insert(pair<int,int>(2,20));
    m.insert(pair<int,int>(3,120));
    m.insert(pair<int,int>(4,103));
    m.insert(pair<int,int>(5,1066));
    printMap(m);
    map<int,int>m2(m);
    printMap(m2);
    map<int,int>m3;
    m3=m2;
    printMap(m3);
}
int main() {
test01();
    system("pause");
    return 0;
}
